package CH5.Demo1;

/**
 * @author: LiuBoTao
 * @date: 2022/9/22
 * @ApiNote
 */
public /*final*/ class Father {

    private float weight=64;
    private float height=1.78f;
    protected Father(){
        System.out.println("Fater Construct,height="+height);
    }
    protected void printWeiht(){
        System.out.println("weight="+weight);
    }
    protected Father(short height){
        this.height=height;
        //System.out.println("Fater Construct,height="+height);
    }
    protected   String head=" head of father";
    protected   String hand="hand of father";
protected /*final*/ int print(int i){//print_int
        System.out.println("father's weight="+weight);
        System.out.println("father's height="+height);
        System.out.println("head="+head);
        return 2;
    }
    /*protected  void speak(String s)*/
public  void speak(String s)

/*    void speak(String s)*/
    {  System.out.println(s);
    }

}
